import { HttpRequest } from '@/common/request/index.js'
import Store from '@/stores'
// 全局挂载 this.$store 到 uni
uni.$stores = Store;

// #ifdef VUE2
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	Store
})
app.$mount()
// Http
HttpRequest(app);
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
import mpShare from './common/mpShare';
export function createApp() {
  const app = createSSRApp(App)
  // Http
  HttpRequest(app);
  app.use(Store);
  // 混入分享
  app.mixin(mpShare);
  return {
    app
  }
}
// #endif